<{if $bankchoosen.accountUserName}>
<div class="account active" accountType="<{$bankchoosen.accountType}>" 
    accountName="<{$bankchoosen.accountName}>" accountUserName="<{$bankchoosen.accountUserName}>">

        <h2 class="title">收款账户</h2>

        <ul>
            <li class="li fix">
                收款类型：
                <{if $bankchoosen.accountType == 'ALIPAY'}>
                <img src="/resource/www/imgs/alipay_icon.png" alt="" class="payimg">
                <{else}>
                <img src="/resource/www/imgs/paypal_icon.png" alt="" class="payimg">
                <{/if}>

            </li>
            <li class="li fix">
            收款币种：
            <{if $bankchoosen.accountType == 'PAYPAL'}>
            欧元(EUR)
            <{else}>
            人民币(RMB)
            <{/if}>
            </li>
            <li class="li fix">
                账户账号： <{$bankchoosen.accountUserName}>
            </li>
            <li class="li fix">
                收款人： <{$bankchoosen.accountName}>
            </li>
        </ul>
    </div>
<{elseif $accountdf}>
<div class="account active" accountType="<{$accountdf.accountType}>" 
    accountName="<{$accountdf.accountName}>" accountUserName="<{$accountdf.accountUserName}>">

        <h2 class="title">收款账户</h2>

        <ul>
            <li class="li fix">
                收款类型：
                <{if $accountdf.accountTypeName == '支付宝'}>
                <img src="/resource/www/imgs/alipay_icon.png" alt="" class="payimg">
                <{else}>
                <img src="/resource/www/imgs/paypal_icon.png" alt="" class="payimg">
                <{/if}>

            </li>
            <li class="li fix">
            收款币种：
            <{if $accountdf.accountTypeName == 'PAYPAL'}>
            欧元(EUR)
            <{else}>
            人民币(RMB)
            <{/if}>
            </li>
            <li class="li fix">
                账户账号： <{$accountdf.accountUserName}>
            </li>
            <li class="li fix">
                收款人： <{$accountdf.accountName}>
            </li>
        </ul>
    </div>
<{/if}>

<{foreach from=$bankList item=account}>
<{if $account}>
    <div class="account" accountType="<{$account.accountType}>" 
    accountName="<{$account.accountName}>" accountUserName="<{$account.accountUserName}>">

        <h2 class="title">账户</h2>

        <ul>
            <li class="li fix">
                收款类型：
                <{if $account.accountTypeName == '支付宝'}>
                <img src="/resource/www/imgs/alipay_icon.png" alt="" class="payimg">
                <{else}>
                <img src="/resource/www/imgs/paypal_icon.png" alt="" class="payimg">
                <{/if}>

            </li>
           <li class="li fix">
            收款币种：
            <{if $account.accountTypeName == 'PAYPAL'}>
            欧元(EUR)
            <{else}>
            人民币(RMB)
            <{/if}>
            </li>
            <li class="li fix">
                账户账号： <{$account.accountUserName}>
            </li>
            <li class="li fix">
                收款人： <{$account.accountName}>
            </li>
        </ul>
    </div>
<{/if}>
<{/foreach}>
<script>
    $(".account").mouseover(function(){$(this).css("border","1px solid #1dd697");});
    $(".account").mouseout(function(){$(this).css("border","1px dotted #e5e5e5");});
    $(".account").click(function(){
    		$(".account").each(function(){
    			if($(this).hasClass("active")){
    				$(this).removeClass("active");
                                $(this).find(".title").html("账户");
    			}
    		});
    		$(this).addClass("active");
                $(this).find(".title").html("收款账户");
                $('input[name=accountType]').val($(this).attr('accountType'));
    	        $('input[name=accountUserName]').val($(this).attr('accountUserName'));
    	        $('input[name=accountName]').val($(this).attr('accountName'));
    });
</script>
